package com.mdx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

/**
 * 事件
 */
@TableName("t_event")
public class EventBean {
    /**
     * 主键
     */
    @TableId(value = "t_eventId",type = IdType.AUTO)
    private int eventId;

    /**
     * 事件名
     */
    @TableField("f_eventName")
    private String eventName;

    /**
     * 发生时间
     */
    @TableField("f_happenTime")
    private LocalDate happenTime;

    /**
     * 灾情阶段
     */
    @TableField("f_disasterStage")
    private String disasterStage;

    /**
     * 灾区图片
     */
    @TableField("f_disasterAreaImg")
    private String disasterAreaImg;

    /**
     * 灾害类型
     */
    @TableField("f_disasterType")
    private String disasterType;

    /**
     * 灾情描述
     */
    @TableField("f_disasterDescription")
    private String disasterDescription;

    /**
     * 发现途径
     */
    @TableField("f_findWay")
    private String findWay;

    /**
     * 初步损失
     */
    @TableField("f_loss")
    private String loss;

    /**
     * 影响面积
     */
    @TableField("f_effectArea")
    private String effectArea;

    /**
     * 防止方案
     */
    @TableField("f_preventionScheme")
    private String preventionScheme;

    /**
     * 区域实体
     */
    @TableField(exist = false)
    private RegionBean regionBean;

    /**
     * 专家建议
     */
    @TableField("f_advice")
    private String advice;

    /**
     * 会商集合
     */
    @TableField(exist = false)
    private List<ConsultationBean> list;

    @Override
    public String toString() {
        return "EventBean{" +
                "eventId=" + eventId +
                ", eventName='" + eventName + '\'' +
                ", happenTime=" + happenTime +
                ", disasterStage='" + disasterStage + '\'' +
                ", disasterAreaImg='" + disasterAreaImg + '\'' +
                ", disasterType='" + disasterType + '\'' +
                ", disasterDescription='" + disasterDescription + '\'' +
                ", findWay='" + findWay + '\'' +
                ", loss='" + loss + '\'' +
                ", effectArea='" + effectArea + '\'' +
                ", preventionScheme='" + preventionScheme + '\'' +
                ", regionBean=" + regionBean +
                ", advice='" + advice + '\'' +
                ", list=" + list +
                '}';
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public LocalDate getHappenTime() {
        return happenTime;
    }

    public void setHappenTime(LocalDate happenTime) {
        this.happenTime = happenTime;
    }

    public String getDisasterStage() {
        return disasterStage;
    }

    public void setDisasterStage(String disasterStage) {
        this.disasterStage = disasterStage;
    }

    public String getDisasterAreaImg() {
        return disasterAreaImg;
    }

    public void setDisasterAreaImg(String disasterAreaImg) {
        this.disasterAreaImg = disasterAreaImg;
    }

    public String getDisasterType() {
        return disasterType;
    }

    public void setDisasterType(String disasterType) {
        this.disasterType = disasterType;
    }

    public String getDisasterDescription() {
        return disasterDescription;
    }

    public void setDisasterDescription(String disasterDescription) {
        this.disasterDescription = disasterDescription;
    }

    public String getFindWay() {
        return findWay;
    }

    public void setFindWay(String findWay) {
        this.findWay = findWay;
    }

    public String getLoss() {
        return loss;
    }

    public void setLoss(String loss) {
        this.loss = loss;
    }

    public String getEffectArea() {
        return effectArea;
    }

    public void setEffectArea(String effectArea) {
        this.effectArea = effectArea;
    }

    public String getPreventionScheme() {
        return preventionScheme;
    }

    public void setPreventionScheme(String preventionScheme) {
        this.preventionScheme = preventionScheme;
    }

    public RegionBean getRegionBean() {
        return regionBean;
    }

    public void setRegionBean(RegionBean regionBean) {
        this.regionBean = regionBean;
    }

    public String getAdvice() {
        return advice;
    }

    public void setAdvice(String advice) {
        this.advice = advice;
    }

    public List<ConsultationBean> getList() {
        return list;
    }

    public void setList(List<ConsultationBean> list) {
        this.list = list;
    }

    public EventBean() {
    }

    public EventBean(String eventName, LocalDate happenTime, String disasterStage, String disasterAreaImg, String disasterType, String disasterDescription, String findWay, String loss, String effectArea, String preventionScheme, RegionBean regionBean, String advice, List<ConsultationBean> list) {
        this.eventName = eventName;
        this.happenTime = happenTime;
        this.disasterStage = disasterStage;
        this.disasterAreaImg = disasterAreaImg;
        this.disasterType = disasterType;
        this.disasterDescription = disasterDescription;
        this.findWay = findWay;
        this.loss = loss;
        this.effectArea = effectArea;
        this.preventionScheme = preventionScheme;
        this.regionBean = regionBean;
        this.advice = advice;
        this.list = list;
    }
}
